<?php
/* 
 * Copyright (c) 2018-2021   All rights reserved.
 * 
 * 创建时间：2021-11-05 08:55
 *
 * 项目：rm  -  $  - headerHtmForm.php
 *
 * 作者：liwei 
 */

?>
<style>
    .form-mainb .form-control {width: auto;min-width:50px}
    .card-footer.formFieldBox.field-settingsmodel-formid {
        width: 100px;
        overflow: hidden;
    }
    .form-mainb .form-control {
        max-width: 100%;
    }
    .card-footer.formFieldBox {
        padding: 2px;
    }
    .form-mainb textarea.form-control {
        min-height: 18px;
        height: 18px;
    }
    .fieldQuickAddBox .card-footer.formFieldBox {margin: 10px;}
    .form-mainb .card-footer.formFieldBox:before {height: 0}
    .form-mainb .card-footer.formFieldBox.field-settingsmodel-classify .textSelectTxt.form-control {
        min-width: calc(100% - 30px) !important;
        width: calc(100% - 25px);
    }
    .form-mainb .card-footer.formFieldBox.field-settingsmodel-classify {
        width: 110px;
        min-width: 110px;
    }
    .form-control {
    }
    .card-footer.formFieldBox.field-settingsmodel-inputtype {
    }
    .flex-box {
        align-items: center;
    }
    .inblk.scale9.transl {
        transform: scale(1) !important;
    }
    .form-mainb input.form-control {
        height: 18px;
    }
    .card-footer.formFieldBox.field-settingsmodel-displayorder .form-control {
        width: 50px;
    }
    .data-listb textarea.set-field {
        height: 14px;
    }
    .column-placeholder p {
        width: 100%;
    }
</style>

<script>
    jQuery(function () {
        Levme.onClick('.admin-edit-btnv', function () {
            Levme.popupIframe.popupShow(this, changeUrlArg(this.href, 'quick', 1), '编辑字段', 0, 1);
            return false;
        })
    });
</script>

<?php if ($formid):?><!--$formid-->

<div class="page-formb">
<div class="form-mainb" style="min-width: 660px;margin:0;">
    <form id="saveForm" class="" action="<?=Lev::toReRoute(['Form_levfm_fields', 'id'=>'levfm', 'quick'=>1])?>" method="post">
        <div class="flex-box card" style="background: rgba(96, 191, 223,0.22);padding:10px;justify-content: center;flex-wrap: wrap">

        <?php echo \lev\widgets\inputs\inputsWidget::form($inputs, $inputsValues, $formPre);?>

        <div class="card-footer formFieldBox">
            <div class="item-input">
                <label class="control-label" for="settingsmodel-displayorder">&nbsp;</label>
                <button type="submit" id="dosubmit" class="button-fill button dosaveFormBtn scale9" style="margin-bottom: 0;transform-origin: center 50px;">
                    <svg class="icon" aria-hidden="true"><use xlink:href="#fa-save"></use></svg>
                    新增
                </button>
            </div>
        </div>
            <div class="card-footer formFieldBox">
                <div class="item-input">
                    <label class="control-label" for="settingsmodel-displayorder">&nbsp;</label>
                    <a class="button-fill button color-black scale9" style="margin-bottom: 0;transform-origin: center 50px;" href="<?=\modules\levfm\helpers\fmUrlHelper::formEdit($formid)?>">
                        <svg class="icon" aria-hidden="true"><use xlink:href="#fa-compose"></use></svg>
                        编辑表单
                    </a>
                </div>
            </div>
            <div class="card-footer formFieldBox">
                <div class="item-input">
                    <label class="control-label" for="settingsmodel-displayorder">&nbsp;</label>
                    <a class="button-fill button color-green scale9" target="_blank" _bk="1" style="margin-bottom: 0;transform-origin: center 50px;" href="<?=\modules\levfm\helpers\fmUrlHelper::formPreview($formid)?>">
                        <svg class="icon" aria-hidden="true"><use xlink:href="#fa-weibo"></use></svg>
                        预览
                    </a>
                </div>
            </div>
            <div class="hiddenx fieldQuickAddBox" style="background: rgba(96, 191, 223,0.2);">
            <?php echo \lev\widgets\inputs\inputsWidget::form($setInputs, $inputsValues, $formPre);?>
            </div>
        </div>
    </form>
</div>
</div>

<?php include dirname(__DIR__) . '/myself_form/footerHtm.php'?>

<script>
    jQuery(function () {
        window.setTimeout(function () {
            jQuery('.fieldQuickAddBox.hiddenx').removeClass('hiddenx');
        }, 200);
    });
</script>


<?php endif;?><!--$formid-->

